package com.rd.student.dashuju.wangbo.demo2;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

public class Test {
    public static void main(String[] args) {
        Flower flower = new Flower("白色",10);
        System.out.println("花的颜色是"+flower.getColour()+"，价格是"+flower.getPrice());
        Rose rose = new Rose();
        rose.setColour("紫色");
        rose.setPrice(30);
        rose.setPlace("大理");
        System.out.println("花的颜色是"+rose.getColour()+"，价格是"+rose.getPrice());
        System.out.println("产地是"+rose.getPlace());
        rose.warn();
    }
}
